package com.itlong.cloud.property.resource;

import com.itlong.cloud.project.property.IPropertyValueDataAnalyseServiceClient;
import com.itlong.cloud.property.service.IPropertyValueDataAnalyseService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

/**
 * <desc>
 *      物业-物业增值-数据分析业务处理暴露接口实现类
 * </desc>
 *
 * @createDate 2019/06/03
 */
@RestController
public class PropertyValueDataAnalyseServiceResource implements IPropertyValueDataAnalyseServiceClient{
    @Autowired
    IPropertyValueDataAnalyseService iPropertyValueDataAnalyseService;

    /**
     * <desc>
     *
     * </desc>
     * @param projectId
     * @param year
     * @return
     */
    @Override
    @PostMapping("/property/propertyValue/dataAnalyse/getList")
    public Map<String,Object> getList(@RequestParam("projectId") String projectId, @RequestParam("year") String year) {
        return iPropertyValueDataAnalyseService.getList(projectId,year);
    }
}
